import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import element from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createPinia } from 'pinia'

const app = createApp(App)

Object.entries(ElementPlusIconsVue).forEach(([name, component]) => {
    app.component(name, component) // 注册所有图标组件
})

app.use(router)
    .use(element)
    .use(createPinia())
    .mount('#app')
